package com.guanyong.dao;

import com.guanyong.model.MaoYanHuaXiangModel;
import com.guanyong.model.MaoyanMovieModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by mxk on 2017/6/1.
 */
public interface IMaoyanMovieDaoMapper {



    @Select("SELECT * FROM t_movie  where baseid=#{baseid}")
    @ResultMap("MaoyanMovieResultMap")
    MaoyanMovieModel GetMaoyanMovieBybaseid(@Param("baseid") Integer baseid);

    @Select("SELECT * FROM t_movie  where movieid=#{movieid}")
    @ResultMap("MaoyanMovieResultMap")
    MaoyanMovieModel GetMaoyanMovieBymovieid(@Param("movieid") Integer movieid);


    @Select("SELECT * FROM t_movie  ")
    @ResultMap("MaoyanMovieResultMap")
    List<MaoyanMovieModel> GetMaoyanMovieListAll();

}
